﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Liquid;
using SLAdmin.UserControls;
using Common;
using System.Windows.Browser;

namespace SLAdmin
{
    public partial class App : Application
    {
        #region AppStartup
        public App()
        {
            this.Startup += this.Application_Startup;
            this.Exit += this.Application_Exit;
            this.UnhandledException += this.Application_UnhandledException;

            InitializeComponent();
        }
        public static SLAdmin.App GetApplication
        {
            get
            {
                return SLAdmin.App.Current as SLAdmin.App;
            }
        }
        private StudyManager _studyManager = StudyManager.GetInstance();

        private void Application_Startup(object sender, StartupEventArgs e)
        {
            //Load the main form
            this.RootVisual = new Page();
        }
        #endregion



        #region AppExit
        private void Application_Exit(object sender, EventArgs e)
        {

        }
        #endregion

        #region AppError
        private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
        {

        }
        #endregion


    }
}